package org.linlinjava.litemall.wx.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


@Setter
@Getter
@ToString
@NoArgsConstructor
public class GoodsProduct {
    private Integer id;
    private Integer goodsId;
    private List<String> specifications;
    private BigDecimal price;
    private Integer number;
    private String url;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    private Boolean deleted;

    public GoodsProduct(Integer id, Integer number) {
        this.id = id;
        this.number = number;
    }

    @Override
    public String toString() {
        return "GoodsProduct{" +
                "id=" + id +
                ", goodsId=" + goodsId +
                ", specifications=" + specifications +
                ", price=" + price +
                ", number=" + number +
                ", url='" + url + '\'' +
                ", addTime=" + addTime +
                ", updateTime=" + updateTime +
                ", deleted=" + deleted +
                '}';
    }
}
